package com.hzw.saas.web.app.rss.param;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Description
 * @Date 2021/7/1 11:47 上午
 * @Created by sonam
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "RSS期刊订阅参数")
public class JournalSubParam {

    @NotBlank(message = "pid，后台数据为custom表主键id")
    @ApiModelProperty(value = "rssId", required = true)
    private String rssId;

    @NotNull(message = "订阅参数不能为空")
    @ApiModelProperty(value = "1|订阅，0|取消订阅", required = true)
    private Integer sub;


}
